package ${package.Mapper};

import ${cfg.packageInfo}.dto.input.Select${entity}InputDTO;
import ${package.Entity}.${entity};
<#if superMapperClassPackage??>
import ${superMapperClassPackage};
</#if>
import com.baomidou.dynamic.datasource.annotation.DS;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * ${table.comment!} mapper接口
 *
 * @author ${author}
 * @date ${date}
 */
@Repository
@DS("master")
<#if superMapperClass??>
public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
<#else>
public interface ${table.mapperName} {
</#if>

    /**
    * 批量插入
    * @param ${entity?uncap_first}List 批量数据
    * @return
    */
    int insertBatch(List<${entity}> ${entity?uncap_first}List);

    /**
    * 条件查询
    * @param inputDTO 查询dto
    * @return
    */
    List<${entity}> selectListByCondition(@Param("record") Select${entity}InputDTO inputDTO);

}